package com.mh.service;

import java.util.List;
import java.util.Set;

import com.mh.domain.Item;
import com.mh.domain.Product;

/**
 * Spring service that handles CRUD requests for Product entities
 * 
 */
public interface ProductService {

	/**
	 * Return all Product entity
	 * 
	 */
	public List<Product> findAllProducts(Integer startResult, Integer maxRows);

	/**
	 * Delete an existing Item entity
	 * 
	 */
	public Product deleteProductItems(Integer product_id, Integer related_items_id);

	/**
	 * Return a count of all Product entity
	 * 
	 */
	public Integer countProducts();

	/**
	 * Delete an existing Product entity
	 * 
	 */
	public void deleteProduct(Product product);

	/**
	 * Save an existing Product entity
	 * 
	 */
	public void saveProduct(Product product_1);

	/**
	 * Load an existing Product entity
	 * 
	 */
	public Set<Product> loadProducts();

	/**
	 * Save an existing Item entity
	 * 
	 */
	public Product saveProductItems(Integer id, Item related_items);

	/**
	 */
	public Product findProductByPrimaryKey(Integer id_1);
	
	public List<Product> findAllProducts(Product product, Integer startResult, Integer maxRows);
	
	public Set<Product>  findProducts(Product product);
}